const arr = [1, 2, 3, 4];

Array.prototype.my_map() = function (callback) {
    for (let i = 0; i < this.length; i++) {
        return callback(this[i], i, this);
    }
}
let res = arr.my_map((item) => {
    return item;
})
console.log(res);
